home *** CD-ROM | disk | FTP | other *** search
/ Windows Expert / Windows Expert.iso / others / win3_nfs.zip / READ.ME next >
Text File  |  1990-10-29  |  1KB  |  23 lines

  1. ----------------------
  2.  
  3. Well, I think I finally found a way to run Windows and PC-NFS together
  4. without having the window manager choke and die on all the drive letters
  5. that do not have disks mounted on them.  You don't need the undocumented
  6. "/d" option in the config sys either (which nukes the ability to see spool
  7. files on the T: U: and V: drives).  Clearing the upper 2 bits of offset 0x43
  8. in the current directury structure for a given drive makes the drive
  9. "invalid" as far as DOS is concerned.  All one needs to do is scan through
  10. all the drives through LASTDRIVE and "nuke" any drive letter that has no
  11. disk mounted to it.  I use IOCTL (int 0x21, function 0x44, subfunction 9)
  12. to determine if the drive is "remote" (a drive IS mounted) or "local" (a
  13. drive IS NOT mounted) to determine this.  Once all the unused drive letters
  14. are gone, fire up Windows and poof - no more errors accessing phantom disks.
  15.  
  16. Now there is one small disadvantage in doing this.  If, after you've nuked
  17. all your excess drive letters, you mount or unmount a drive (yes, NET USE
  18. still works) the new drive will still be invalid, and the dropped drive
  19. will still exist (as far as DOS is concerned).  My solution is to first
  20. mark every drive letter as valid, then check each drive and mark the
  21. invalid ones.  After any NET USE command, simply repeat this process to
  22. reflect the change.
  23.